package com.plian.system.entity.im;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2023/2/6 2:09 PM
 * @Version: 1.0
 **/
@Data
@TableName("im_base_investment_plan_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "InvestmentPlanRecord 对象", description = "投资计划备案")
public class InvestmentPlanRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "企业Id")
    private String orgId;

    @ApiModelProperty(value = "年份")
    private String year;

    @ApiModelProperty(value = "备案文件名")
    private String recordName;

    @ApiModelProperty(value = "备案号")
    private String recordCode;

    @ApiModelProperty(value = "备案数")
    private BigDecimal recordQuantity;

    @ApiModelProperty(value = "其中：固定资产投资额")
    private BigDecimal fixedAssetsFund;

    @ApiModelProperty(value = "其中：股权投资额")
    private BigDecimal equityFund;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "备案时间 yyyy-MM-dd")
    private Date recordTime;

    @ApiModelProperty(value = "类型")
    private String formType;

    @ApiModelProperty(value = "计划Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;
}
